const authJwtPlugin = require('./authJwtPlugin');
const dbPlugin = require('./dbPlugin');
const hapiSwaggerPlugin = require('./hapiSwaggerPlugin');
const rbacPlugin = require('./rbacPlugin');

exports.plugin = {
  name: 'indexPlugin',
  async register(server) {
    await server.register([
      dbPlugin,
      hapiSwaggerPlugin,
      authJwtPlugin,
      rbacPlugin,
    ]);
  },
};
